- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for parseFrom (0.06 sec)
-
cmd/signature-v4-utils_test.go
- }
- inputReq.URL.RawQuery = q.Encode()
- } else if testCase.inputHeaderKey != "" {
- inputReq.Header.Set(testCase.inputHeaderKey, testCase.inputHeaderValue)
- }
- inputReq.ParseForm()
- actualResult := skipContentSha256Cksum(inputReq)
- if testCase.expectedResult != actualResult {
- t.Errorf("Test %d: Expected the result to `%v`, but instead got `%v`", i+1, testCase.expectedResult, actualResult)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 05 21:26:41 UTC 2024 - 14.3K bytes - Viewed (0) -
cmd/sts-handlers.go
- // Session tokens are not allowed in STS AssumeRole requests.
- if getSessionToken(r) != "" {
- return auth.Credentials{}, ErrAccessDenied
- }
- return user, ErrNone
- }
- func parseForm(r *http.Request) error {
- if err := r.ParseForm(); err != nil {
- return err
- }
- for k, v := range r.PostForm {
- if _, ok := r.Form[k]; !ok {
- r.Form[k] = v
- }
- }
- return nil
- }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 01:29:20 UTC 2024 - 33.9K bytes - Viewed (0) -
cmd/auth-handler_test.go
- t.Fatalf("Error initializing input HTTP request: %v", err)
- }
- q := inputReq.URL.Query()
- q.Add(testCase.inputQueryKey, testCase.inputQueryValue)
- inputReq.URL.RawQuery = q.Encode()
- inputReq.ParseForm()
- actualResult := isRequestPresignedSignatureV2(inputReq)
- if testCase.expectedResult != actualResult {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 15.4K bytes - Viewed (0) -
cmd/signature-v4_test.go
- }
- // Do the same for the headers.
- for key, value := range testCase.headers {
- req.Header.Set(key, value)
- }
- // parse form.
- req.ParseForm()
- // Check if it matches!
- err := doesPresignedSignatureMatch(payloadSHA256, req, testCase.region, serviceS3)
- if err != testCase.expected {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 10.5K bytes - Viewed (0) -
cmd/storage-rest-server.go
- func (s *storageRESTServer) IsValid(w http.ResponseWriter, r *http.Request) bool {
- if !s.IsAuthValid(w, r) {
- return false
- }
- if err := r.ParseForm(); err != nil {
- s.writeErrorResponse(w, err)
- return false
- }
- diskID := r.Form.Get(storageRESTDiskID)
- if diskID == "" {
- // Request sent empty disk-id, we allow the request
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 45.7K bytes - Viewed (0)