Skip to content

Get Request Headers return class HTTPMessage #43

@baldervanx

Description

@baldervanx

Describe the bug
Similar to issue #40, the request headers are not converted to a dictionary

To Reproduce
HttpCtrl.Server.Wait For Request
${headers}= Get Request Headers
# Should be a dictionary - returns class http.client.HTTPMessage
${type_string}= Evaluate type($headers)
# The following does not work, due to above:
Dictionary Should Contain Item ${headers} Content-Type application/json

Expected behavior
Quite obvious, return a dictionary instead of the HTTPMessage class

Screenshots
N/A

Desktop (please complete the following information):

  • OS: CentOS
  • Python Version: 3.9

Additional context
Don't know why, but this problem appeared when I re-installed my system. Before that it worked. Not sure if this works in some combination of versions but not other. Pretty sure I used the same HttpCtrl version (0.3.1) in both cases.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions