Skip to content

logbody = false causes body not to be sent to socket  #131

@samoconnor

Description

@samoconnor

I've put a println(reqstr) in connectandsend just before @retryif Base.UVError write(conn.socket, reqstr) to see what gets sent over the socket.

When I do HTTP.get("http://httpbin.org/ip"; logbody=false), I see this...

GET /ip HTTP/1.1
User-Agent: HTTP.jl/0.0.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,application/json; charset=utf-8
Host: httpbin.org

[request body logging disabled]

Looks related to #130. i.e. request if buffered into a string by the same body(::io, ...) method that is used for logging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions