Skip to content

request: read body from file if the method is PATCH - #184

Merged
digitalresistor merged 1 commit into
Pylons:masterfrom
jd:jd/read-body-on-patch
Apr 10, 2015
Merged

request: read body from file if the method is PATCH#184
digitalresistor merged 1 commit into
Pylons:masterfrom
jd:jd/read-body-on-patch

Conversation

@jd

@jd jd commented Dec 26, 2014

Copy link
Copy Markdown
Contributor

Currently Request.from_file ignore the body of a request if the method
is PATCH. This fixes that by using the dictionary we have to know if a
request might have a body or not.
Same goes for as_bytes().

@tseaver

tseaver commented Dec 26, 2014

Copy link
Copy Markdown
Member

Travis broken on Python 2.6.

Currently Request.from_file ignore the body of a request if the method
is PATCH. This fixes that by using the dictionary we have to know if a
request might have a body or not.
@jd
jd force-pushed the jd/read-body-on-patch branch from 2a9b542 to b4ebafd Compare December 26, 2014 13:24
@jd

jd commented Dec 26, 2014

Copy link
Copy Markdown
Contributor Author

@tseaver Thanks, fixed.

@jd

jd commented Apr 10, 2015

Copy link
Copy Markdown
Contributor Author

Ping ?

@tseaver

tseaver commented Apr 10, 2015

Copy link
Copy Markdown
Member

@bertjwregeer LGTM.

@digitalresistor digitalresistor added this to the Version 1.5 milestone Apr 10, 2015
@digitalresistor

Copy link
Copy Markdown
Member

Thanks @tseaver. Pulled in. This will be in version 1.5. Hoping to get an alpha out the door by the end of PyCon.

I will most likely back-port this to the 1.4 branch tonight.

digitalresistor added a commit that referenced this pull request Apr 10, 2015
request: read body from file if the method is PATCH
@digitalresistor
digitalresistor merged commit 0669e3f into Pylons:master Apr 10, 2015
digitalresistor added a commit that referenced this pull request Apr 11, 2015
request: read body from file if the method is PATCH
@digitalresistor

Copy link
Copy Markdown
Member

I've backported this to the 1.4 branch. Will get a new version out soon.

openstack-gerrit pushed a commit to openstack-archive/gnocchi that referenced this pull request Apr 15, 2015
webob had a bug wherein the body was not read on a PATCH. A pull
request was submitted:

    Pylons/webob#184

and a new release with that change was released recently, breaking
fresh 'tox -e docs' jobs.

This changeset just requires the working WebOb. This may present
packaging issues, so tidier solutions welcome.

Closes-Bug: #1444160
Change-Id: I650a3ca3ae8381c556457c4504460c2b7f8a8d60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants