# Ngx\_chunkin does not support PUT requests yet (Was Re: PUT support for chunked encoding with no Cont

**URL:** <https://www.ruby-forum.com/t/ngx-chunkin-does-not-support-put-requests-yet-was-re-put-support-for-chunked-encoding-with-no-cont/187713>\
**Category:** NGINX\
**Created:** [April 28, 2010, 6:23am UTC](https://www.ruby-forum.com/t/ngx-chunkin-does-not-support-put-requests-yet-was-re-put-support-for-chunked-encoding-with-no-cont/187713 "2010-04-28T06:23:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![agentzh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Post date:** [April 28, 2010, 6:23am UTC](https://www.ruby-forum.com/t/ngx-chunkin-does-not-support-put-requests-yet-was-re-put-support-for-chunked-encoding-with-no-cont/187713/1 "2010-04-28T06:23:52Z")

</div>

On Mon, Apr 26, 2010 at 12:35 AM, Aaron N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> On Sun, Apr 25, 2010 at 4:06 AM, agentzh [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > You may find the ngx\_chunkin module helpful:
> > 
> > [http://wiki.nginx.org/NginxHttpChunkinModule](http://wiki.nginx.org/NginxHttpChunkinModule)
> 
> Yep, I tried this module right off the bat and received the same  
> error.

Okay, my bad. ngx\_chunkin does not support PUT requests yet (The nginx  
core goes another route for non-POST requests with chunked encoding.).

I’ve never tried PUT in my test suite. I’ll try fixing it in the next  
release. It should be a simple fix in the  
ngx\_http\_chunkin\_is\_chunked\_encod  
ing function. Thanks for the report!

BTW, nginx will still print that error message to error.log even if  
ngx\_chunkin works. Because nginx aggressively checks this case when it  
parses request headers and ngx\_chunkin cannot take any action before  
that. Commenting out that ngx\_log\_error line in the nginx core should  
work 😉

Cheers,  
-agentzh

---

<div class="post-metadata">

**Author:** ![agentzh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Post date:** [April 28, 2010, 10:02am UTC](https://www.ruby-forum.com/t/ngx-chunkin-does-not-support-put-requests-yet-was-re-put-support-for-chunked-encoding-with-no-cont/187713/2 "2010-04-28T10:02:11Z")

</div>

On Tue, Apr 27, 2010 at 10:23 PM, agentzh [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve never tried PUT in my test suite. I’ll try fixing it in the next  
> release. It should be a simple fix in the  
> ngx\_http\_chunkin\_is\_chunked\_encod  
> ing function. Thanks for the report!

Great - thanks for the update. I’m anxious to try this out and am  
happy to test out builds once you have something you think is ready  
for release. Feel free to contact me directly if I can help.

Thanks,  
Aaron

---

<div class="post-metadata">

**Author:** ![agentzh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Post date:** [July 22, 2010, 8:16pm UTC](https://www.ruby-forum.com/t/ngx-chunkin-does-not-support-put-requests-yet-was-re-put-support-for-chunked-encoding-with-no-cont/187713/3 "2010-07-22T20:16:01Z")

</div>

On Tue, Apr 27, 2010 at 10:23 PM, agentzh [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Okay, my bad. ngx\_chunkin does not support PUT requests yet (The nginx  
> core goes another route for non-POST requests with chunked encoding.).
> 
> I’ve never tried PUT in my test suite. I’ll try fixing it in the next  
> release. It should be a simple fix in the  
> ngx\_http\_chunkin\_is\_chunked\_encod  
> ing function. Thanks for the report!

Did this ever make it into a release? I’d love to try it out.

Thanks,  
Aaron

---

<div class="post-metadata">

**Author:** ![agentzh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Post date:** [August 2, 2010, 9:49am UTC](https://www.ruby-forum.com/t/ngx-chunkin-does-not-support-put-requests-yet-was-re-put-support-for-chunked-encoding-with-no-cont/187713/4 "2010-08-02T09:49:33Z")

</div>

On Fri, Jul 23, 2010 at 2:15 AM, Aaron N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 

Just for the record, ngx\_chunkin has now got chunked PUT support since  
the v0.20 release:

```
http://wiki.nginx.org/NginxHttpChunkinModule#v0.20

```

Have fun!  
-agentzh

---

<div class="post-metadata">

**Author:** ![agentzh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Post date:** [July 23, 2010, 4:16am UTC](https://www.ruby-forum.com/t/ngx-chunkin-does-not-support-put-requests-yet-was-re-put-support-for-chunked-encoding-with-no-cont/187713/5 "2010-07-23T04:16:42Z")

</div>

On Fri, Jul 23, 2010 at 2:15 AM, Aaron N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Did this ever make it into a release? I’d love to try it out.

Not yet. Been busy with many other stuffs. I’ll let you know when I’m on  
it.

Cheers,  
-agentzh

---

<div class="post-metadata">

**Author:** ![agentzh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Post date:** [August 3, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/ngx-chunkin-does-not-support-put-requests-yet-was-re-put-support-for-chunked-encoding-with-no-cont/187713/6 "2010-08-03T18:56:26Z")

</div>

On Mon, Aug 2, 2010 at 1:48 AM, agentzh [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Just for the record, ngx\_chunkin has now got chunked PUT support since  
> the v0.20 release:

Changelog says support for chunked POST support - is PUT support  
included in that? I thought POST support was already there when this  
thread was going on.

---

<div class="post-metadata">

**Author:** ![agentzh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Post date:** [August 4, 2010, 4:18am UTC](https://www.ruby-forum.com/t/ngx-chunkin-does-not-support-put-requests-yet-was-re-put-support-for-chunked-encoding-with-no-cont/187713/7 "2010-08-04T04:18:34Z")

</div>

On Wed, Aug 4, 2010 at 12:55 AM, Aaron N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> On Mon, Aug 2, 2010 at 1:48 AM, agentzh [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Just for the record, ngx\_chunkin has now got chunked PUT support since  
> > the v0.20 release:
> 
> Changelog says support for chunked POST support - is PUT support  
> included in that? I thought POST support was already there when this  
> thread was going on.

Nice catch 🙂 It was a typo and I’ve fixed it on the wiki page 😛

Cheers,  
-agentzh
