Category "gorilla"

Secure Cookies not working with hostname set in hosts file

I have cookies set as secure, but it's working as localhost. But with the domain name set in the hosts file, chrome is not sending the cookies to server resulte

in tests mux.Vars() returns nil instead of expected map

I have a Gorilla Mux router setup inside a function that returns *mux.Router, goes like this func MakeApp(services service.Service, pe PolicyEnforce) *mux.Route

in tests mux.Vars() returns nil instead of expected map

I have a Gorilla Mux router setup inside a function that returns *mux.Router, goes like this func MakeApp(services service.Service, pe PolicyEnforce) *mux.Route

Cannot unmarshal a post json python request in Go

Here is my python code (client side) : import requests import json import datetime headers = {'Content-type': 'application/json',"Authorization":"Bearer MYRE