# Proposed Patch - url encoding all upper case

**URL:** <https://www.ruby-forum.com/t/proposed-patch-url-encoding-all-upper-case/167730>\
**Category:** NGINX\
**Created:** [May 12, 2009, 1:12am UTC](https://www.ruby-forum.com/t/proposed-patch-url-encoding-all-upper-case/167730 "2009-05-12T01:12:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdmcnitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a4c791/32.png) [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Post date:** [May 12, 2009, 1:12am UTC](https://www.ruby-forum.com/t/proposed-patch-url-encoding-all-upper-case/167730/1 "2009-05-12T01:12:17Z")

</div>

I’d like to propose that URI encoding be done using upper case  
characters instead of lower case characters. Both seem to be acceptable;  
I’m only requesting this since most of the other libraries that we use  
that do URI encoding use upper case characters.

nginx 0.7.6 src/core/ngx\_string.c

## diff ngx\_string.c~ ngx\_string.c 1096c1096 \< static u\_char hex[] = “0123456789abcdef”;

> ```
> static u_char hex[] = "0123456789ABCDEF";
> ```

---

<div class="post-metadata">

**Author:** ![bdmcnitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a4c791/32.png) [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Post date:** [May 12, 2009, 10:43pm UTC](https://www.ruby-forum.com/t/proposed-patch-url-encoding-all-upper-case/167730/2 "2009-05-12T22:43:05Z")

</div>

å¯ä»¥æ”¹ä»£ç ç¼–è¯‘åŽç›´æŽ¥ä½¿ç”¨ï¼›ä¹Ÿå¯ä»¥ç”¨å†…åµŒçš„perlçµæ´»è®¾ç½®ï¼Œæ•ˆçŽ‡ä¹Ÿéžå¸¸é«˜

Posted at Nginx Forum:

> **[Re: Proposed Patch - url encoding all upper case...](https://forum.nginx.org/read.php?2,1918,1920#msg-1920)**
>
> I'd like to propose that URI encoding be done using upper case characters instead of lower case characters. Both seem to be acceptable; I'm only requesting this since most of the other libraries that we use that do URI encoding use upper case...

---

<div class="post-metadata">

**Author:** ![bdmcnitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a4c791/32.png) [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Post date:** [May 13, 2009, 1:27am UTC](https://www.ruby-forum.com/t/proposed-patch-url-encoding-all-upper-case/167730/3 "2009-05-13T01:27:07Z")

</div>

åäºº wrote:

> å¯ä»¥æ”¹ä»£ç ç¼–è¯‘åŽç›´æŽ¥ä½¿ç”¨ï¼›ä¹Ÿå¯ä»¥ç”¨å†…åµŒçš„perlçµæ´»è®¾ç½®ï¼Œæ•ˆçŽ‡ä¹Ÿéžå¸¸é«˜
> 
> Posted at Nginx Forum: [Re: Proposed Patch - url encoding all upper case...](http://forum.nginx.org/read.php?2,1918,1920#msg-1920)

The reason that I’m asking for the change in NGINX is that in one  
particular application (X-Accel-Redirect to AWS S3), calculation of a  
server variable is done on URL encodings done with UPPER CASE  
characters.

We supply NON-URL encoded URLs to X-Accel-Redirect - these are  
re-encoded by nginx using lower case characters for any hex values, and  
consequently the server variable calculation (already done before  
X-Accel-Redirect) fails.

---

<div class="post-metadata">

**Author:** ![bdmcnitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a4c791/32.png) [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Post date:** [October 28, 2011, 2:30pm UTC](https://www.ruby-forum.com/t/proposed-patch-url-encoding-all-upper-case/167730/4 "2011-10-28T14:30:57Z")

</div>

Please excuse me for the necroposting, but what’s the decision for the  
proposed patch?  
My Nginx reverse proxy malfunctions due to this problem.(  
Is there any workaround for the problem?

Posted at Nginx Forum:

> **[Re: Proposed Patch - url encoding all upper case...](https://forum.nginx.org/read.php?2,1918,217439#msg-217439)**
>
> I'd like to propose that URI encoding be done using upper case characters instead of lower case characters. Both seem to be acceptable; I'm only requesting this since most of the other libraries that we use that do URI encoding use upper case...
