mirror of
https://github.com/PrivateCaptcha/PrivateCaptcha.git
synced 2026-02-11 08:18:52 -06:00
62 lines
2.3 KiB
Go
62 lines
2.3 KiB
Go
package common
|
|
|
|
import "net/http"
|
|
|
|
const (
|
|
DefaultOrgName = "My Organization"
|
|
PrivateCaptcha = "Private Captcha"
|
|
PrivateCaptchaTeam = "Private Captcha Team"
|
|
StageDev = "dev"
|
|
StageStaging = "staging"
|
|
StageTest = "test"
|
|
ContentTypePlain = "text/plain"
|
|
ContentTypeHTML = "text/html; charset=utf-8"
|
|
ContentTypeJSON = "application/json"
|
|
ContentTypeURLEncoded = "application/x-www-form-urlencoded"
|
|
ParamSiteKey = "sitekey"
|
|
ParamSecret = "secret"
|
|
ParamResponse = "response"
|
|
ParamEmail = "email"
|
|
ParamName = "name"
|
|
ParamCSRFToken = "csrf_token"
|
|
ParamVerificationCode = "vcode"
|
|
ParamDomain = "domain"
|
|
ParamDifficulty = "difficulty"
|
|
ParamGrowth = "growth"
|
|
ParamTab = "tab"
|
|
ParamNew = "new"
|
|
ParamDays = "days"
|
|
ParamOrg = "org"
|
|
ParamUser = "user"
|
|
ParamPeriod = "period"
|
|
ParamProperty = "property"
|
|
ParamKey = "key"
|
|
ParamCode = "code"
|
|
ParamID = "id"
|
|
ParamValidityInterval = "validity_interval"
|
|
ParamAllowSubdomains = "allow_subdomains"
|
|
ParamAllowLocalhost = "allow_localhost"
|
|
ParamAllowReplay = "allow_replay"
|
|
ParamIgnoreError = "ignore_error"
|
|
ParamLicenseKey = "lid"
|
|
ParamHardwareID = "hwid"
|
|
ParamVersion = "version"
|
|
ParamPortalSolution = "pc_portal_solution"
|
|
ParamTerms = "terms"
|
|
ParamMaxReplayCount = "max_replay_count"
|
|
)
|
|
|
|
var (
|
|
HeaderCDNTag = http.CanonicalHeaderKey("CDN-Tag")
|
|
HeaderContentType = http.CanonicalHeaderKey("Content-Type")
|
|
HeaderContentLength = http.CanonicalHeaderKey("Content-Length")
|
|
HeaderAuthorization = http.CanonicalHeaderKey("Authorization")
|
|
HeaderCSRFToken = http.CanonicalHeaderKey("X-CSRF-Token")
|
|
HeaderCaptchaVersion = http.CanonicalHeaderKey("X-PC-Captcha-Version")
|
|
HeaderCaptchaCompat = http.CanonicalHeaderKey("X-Captcha-Compat-Version")
|
|
HeaderAPIKey = http.CanonicalHeaderKey("X-API-Key")
|
|
HeaderAccessControlOrigin = http.CanonicalHeaderKey("Access-Control-Allow-Origin")
|
|
HeaderAccessControlAge = http.CanonicalHeaderKey("Access-Control-Max-Age")
|
|
HeaderTraceID = http.CanonicalHeaderKey("X-Trace-ID")
|
|
)
|