try another cookie format, ntg submits ntgauthtoken as cookie
This commit is contained in:
@@ -72,6 +72,11 @@ type Config struct {
|
||||
Username string
|
||||
Password string
|
||||
}
|
||||
FastExact struct {
|
||||
Mock bool
|
||||
Username string
|
||||
Password string
|
||||
}
|
||||
}
|
||||
|
||||
lock sync.Mutex
|
||||
|
||||
104
config/state.go
104
config/state.go
@@ -7,56 +7,56 @@ import (
|
||||
|
||||
type State string
|
||||
|
||||
var States = map[string]State{
|
||||
"99654": "AL",
|
||||
"72401": "AR",
|
||||
"85364": "AZ",
|
||||
"90011": "CA",
|
||||
"80013": "CO",
|
||||
"06902": "CT",
|
||||
"19720": "DE",
|
||||
"33024": "FL",
|
||||
"30043": "GA",
|
||||
"96706": "HI",
|
||||
"50613": "IA",
|
||||
"83646": "ID",
|
||||
"60629": "IL",
|
||||
"47906": "IN",
|
||||
"66062": "KS",
|
||||
"40475": "KY",
|
||||
"70726": "LA",
|
||||
"02301": "MA",
|
||||
"20906": "MD",
|
||||
"04401": "ME",
|
||||
"48197": "MI",
|
||||
"55106": "MN",
|
||||
"63376": "MO",
|
||||
"39503": "MS",
|
||||
"59901": "MT",
|
||||
"27006": "NC",
|
||||
"58103": "ND",
|
||||
"68516": "NE",
|
||||
"03103": "NH",
|
||||
"08701": "NJ",
|
||||
"87121": "NM",
|
||||
"89108": "NV",
|
||||
"11368": "NY",
|
||||
"45011": "OH",
|
||||
"73099": "OK",
|
||||
"97006": "OR",
|
||||
"19120": "PA",
|
||||
"02860": "RI",
|
||||
"29483": "SC",
|
||||
"57106": "SD",
|
||||
"37013": "TN",
|
||||
"77449": "TX",
|
||||
"84058": "UT",
|
||||
"22193": "VA",
|
||||
"05401": "VT",
|
||||
"99301": "WA",
|
||||
"53215": "WI",
|
||||
"26554": "WV",
|
||||
"82001": "WY",
|
||||
var States = map[State]string{
|
||||
"AL": "99654",
|
||||
"AR": "72401",
|
||||
"AZ": "85364",
|
||||
"CA": "90011",
|
||||
"CO": "80013",
|
||||
"CT": "06902",
|
||||
"DE": "19720",
|
||||
"FL": "33024",
|
||||
"GA": "30043",
|
||||
"HI": "96706",
|
||||
"IA": "50613",
|
||||
"ID": "83646",
|
||||
"IL": "60629",
|
||||
"IN": "47906",
|
||||
"KS": "66062",
|
||||
"KY": "40475",
|
||||
"LA": "70726",
|
||||
"MA": "02301",
|
||||
"MD": "20906",
|
||||
"ME": "04401",
|
||||
"MI": "48197",
|
||||
"MN": "55106",
|
||||
"MO": "63376",
|
||||
"MS": "39503",
|
||||
"MT": "59901",
|
||||
"NC": "27006",
|
||||
"ND": "58103",
|
||||
"NE": "68516",
|
||||
"NH": "03103",
|
||||
"NJ": "08701",
|
||||
"NM": "87121",
|
||||
"NV": "89108",
|
||||
"NY": "11368",
|
||||
"OH": "45011",
|
||||
"OK": "73099",
|
||||
"OR": "97006",
|
||||
"PA": "19120",
|
||||
"RI": "02860",
|
||||
"SC": "29483",
|
||||
"SD": "57106",
|
||||
"TN": "37013",
|
||||
"TX": "77449",
|
||||
"UT": "84058",
|
||||
"VA": "22193",
|
||||
"VT": "05401",
|
||||
"WA": "99301",
|
||||
"WI": "53215",
|
||||
"WV": "26554",
|
||||
"WY": "82001",
|
||||
}
|
||||
|
||||
func (state *State) UnmarshalJSON(b []byte) error {
|
||||
@@ -65,8 +65,8 @@ func (state *State) UnmarshalJSON(b []byte) error {
|
||||
return err
|
||||
}
|
||||
for k := range States {
|
||||
if string(States[k]) == s {
|
||||
*state = States[k]
|
||||
if string(k) == s {
|
||||
*state = k
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user