atlantis icon indicating copy to clipboard operation
atlantis copied to clipboard

[BUG] Missing some Header from Request

Open NghiaTranUIT opened this issue 5 years ago • 2 comments

Description

For some reason, our swizzle method could not get the following request:

  • Accept-Language
  • User-Agent
  • Accept-Encoding

Research shows that three HTTP Headers are appending at the very end before the request is executed from URL Session.

Begel is not able to record it too, but FLEX does. We should find a way to fix it 👍

NghiaTranUIT avatar Oct 28 '20 03:10 NghiaTranUIT

Hey Nghia 👋

I see this is listed as "Done" but unsure if it's actually fixed? Maybe a regression in the version I'm using?

Request Header: []

Response Header: [Atlantis.Header(key: "Strict-Transport-Security", value: "max-age=31536000; includeSubDomains"), Atlantis.Header(key: "Server", value: "nginx"), Atlantis.Header(key: "Content-Type", value: "text/html; charset=UTF-8"), Atlantis.Header(key: "Content-Length", value: "31767"), Atlantis.Header(key: "x-content-type-options", value: "nosniff"), Atlantis.Header(key: "Cache-Control", value: "public, max-age=10, s-maxage=30"), Atlantis.Header(key: "Vary", value: "Accept-Encoding"), Atlantis.Header(key: "Content-Encoding", value: "gzip"), Atlantis.Header(key: "x-xss-protection", value: "1; mode=block"), Atlantis.Header(key: "Date", value: "Tue, 23 Feb 2021 20:30:00 GMT")]

As it stands the lists above show all of the request/response headers I'm receiving but User-Agent is not one (and is one that I would like!)

Atlantis v1.8.0 via Swift Package Manager in "transport-less mode"

        Atlantis.setDelegate(self)
        Atlantis.setEnableTransportLayer(false)
        Atlantis.start()

Sherlouk avatar Feb 23 '21 20:02 Sherlouk

I'm currently experiencing this issue. For example: User-Agent is being stripped when I use Atlantis, but when I do a manual proxy it is included.

archcorsair avatar Nov 03 '21 00:11 archcorsair