-
Notifications
You must be signed in to change notification settings - Fork 8
add a headers arg to create_entity() #57
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Hi,
Thank you for this nice wrapper.
Describe the bug
Sometimes I run into this error phpipam/phpipam#3177
and as stated in this issue, I have to pass {"content-type: "application/x-www-form-urlencoded"}
in the headers to solve it.
Currently create_entity() does not have a 'headers' argument, so I have to call _query() directly to pass the header to the request.
Expected behavior
It is a bite dirty to have to call an internal function directly, so I would like to
be able to pass an 'headers' arg to create_entity(), and also to update_entity() and delete_entity for consistency I guess.
Versions:
- python 3.10
- phpypam 1.0.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed