Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1486 by [email protected]: HttpLibrary and multipart/form-data
messages Boundaries are altered
http://code.google.com/p/robotframework/issues/detail?id=1486
Robot Version 2.8.1
Jython 2.5.2
Python 2.7.3
robotframework_httplibrary-0.4.1-py2.7.egg-info
I have raised this in the Robot Framework users forum and all the details
are in the following post:
https://groups.google.com/forum/#!topic/robotframework-users/DB-mFNlAy3o
Kevin O.
Jul 3 (13 hours ago)
This looks like a defect in HttpLibrary. Please report it.
If Content-Type is sent as a header to livetest's post method without using
content_type argument, the body is not altered.
HttpLibrary is detecting this header and passing the value that through to
the content_type arg.
webtest.TestApp._gen_request tries to add a file into the body if
content_type is sent and it starts with 'multipart'.
The lines that are causing the problem are:
if 'Content-Type' in self.context.request_headers:
kwargs['content_type'] = self.context.request_headers['Content-Type']
I'm not sure why this was done as adding a 'Content-Type' request header
seems sufficient to make a proper request.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.