gomobiledetect icon indicating copy to clipboard operation
gomobiledetect copied to clipboard

getHeaders: copy of unecessary headers

Open themihai opened this issue 8 years ago • 1 comments

Is seems getHeaders copies headers that are not used. Is there any reason for that?

        "REQUEST_METHOD":   r.Method,
        "HOST":             r.Host,
        "X_REAL_IP":        r.Header.Get("X_REAL_IP"),
        "X_FORWARDED_FOR":  r.Header.Get("X_FORWARDED_FOR"),

themihai avatar May 23 '16 18:05 themihai

Probably legacy. Feel free to fork & pull request

Shaked avatar May 24 '16 09:05 Shaked