Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for parseFrom (0.06 sec)

  1. cmd/signature-v4-utils_test.go

    1. }
    2. inputReq.URL.RawQuery = q.Encode()
    3. } else if testCase.inputHeaderKey != "" {
    4. inputReq.Header.Set(testCase.inputHeaderKey, testCase.inputHeaderValue)
    5. }
    6. inputReq.ParseForm()
    7.  
    8. actualResult := skipContentSha256Cksum(inputReq)
    9. if testCase.expectedResult != actualResult {
    10. 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)
  2. cmd/sts-handlers.go

    1. // Session tokens are not allowed in STS AssumeRole requests.
    2. if getSessionToken(r) != "" {
    3. return auth.Credentials{}, ErrAccessDenied
    4. }
    5.  
    6. return user, ErrNone
    7. }
    8.  
    9. func parseForm(r *http.Request) error {
    10. if err := r.ParseForm(); err != nil {
    11. return err
    12. }
    13. for k, v := range r.PostForm {
    14. if _, ok := r.Form[k]; !ok {
    15. r.Form[k] = v
    16. }
    17. }
    18. return nil
    19. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  3. cmd/auth-handler_test.go

    1. t.Fatalf("Error initializing input HTTP request: %v", err)
    2. }
    3. q := inputReq.URL.Query()
    4. q.Add(testCase.inputQueryKey, testCase.inputQueryValue)
    5. inputReq.URL.RawQuery = q.Encode()
    6. inputReq.ParseForm()
    7.  
    8. actualResult := isRequestPresignedSignatureV2(inputReq)
    9. 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)
  4. cmd/signature-v4_test.go

    1. }
    2.  
    3. // Do the same for the headers.
    4. for key, value := range testCase.headers {
    5. req.Header.Set(key, value)
    6. }
    7.  
    8. // parse form.
    9. req.ParseForm()
    10.  
    11. // Check if it matches!
    12. err := doesPresignedSignatureMatch(payloadSHA256, req, testCase.region, serviceS3)
    13. 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)
  5. cmd/storage-rest-server.go

    1. func (s *storageRESTServer) IsValid(w http.ResponseWriter, r *http.Request) bool {
    2. if !s.IsAuthValid(w, r) {
    3. return false
    4. }
    5.  
    6. if err := r.ParseForm(); err != nil {
    7. s.writeErrorResponse(w, err)
    8. return false
    9. }
    10.  
    11. diskID := r.Form.Get(storageRESTDiskID)
    12. if diskID == "" {
    13. // 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)
Back to top