Skip to content

No support for POST requests #9

Description

@nadavpld

It is not quite a bug, rather a request
The requests made by the Lua script are GET requests by default.
In order to enhance security we are not allowing such requests to our authentication backends and therefore had to make a small fix in the Lua script :

     local b, c, h = http.request {
		url = "http://" .. addr .. path,
		method = 'POST',
		headers = headers,
		create = create_sock,
		-- Disable redirects, because DNS does not work here.
		redirect = false
	}

Should the script get the method as a parameter with a default value of GET ?
Anyways, a clarification in the README file will be great, spent some time debugging my code and haproxy.cfg before noticing the request method

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions