View | Details | Raw Unified | Return to bug 42361
Collapse All | Expand All

(-)FormAuthenticator.java.2 (-1 / +11 lines)
Lines 428-434 Link Here
428
    
428
    
429
                // Set content type
429
                // Set content type
430
                MessageBytes contentType = MessageBytes.newInstance();
430
                MessageBytes contentType = MessageBytes.newInstance();
431
                contentType.setString("application/x-www-form-urlencoded");
431
                
432
                //If no content type specified, use default for POST
433
                String savedContentType = saved.getContentType();
434
                if (savedContentType == null)
435
                    savedContentType = "application/x-www-form-urlencoded";
436
                
437
                contentType.setString(savedContentType);
432
                request.getCoyoteRequest().setContentType(contentType);
438
                request.getCoyoteRequest().setContentType(contentType);
433
            }
439
            }
434
        }
440
        }
Lines 488-493 Link Here
488
                body.append(buffer, 0, bytesRead);
494
                body.append(buffer, 0, bytesRead);
489
            }
495
            }
490
            saved.setBody(body);
496
            saved.setBody(body);
497
            
498
            //Save content type, cannot assume application/x-www-form-urlencoded
499
            //since it could be a multi-part form
500
            saved.setContentType(request.getContentType());
491
        }
501
        }
492
502
493
        saved.setMethod(request.getMethod());
503
        saved.setMethod(request.getMethod());

Return to bug 42361