Bug 20047 - A Bug about Web Api host by OWIN Self-Host on mono
Summary: A Bug about Web Api host by OWIN Self-Host on mono
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: General (show other bugs)
Version: 3.4.0
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-26 12:14 UTC by Wang Zidan
Modified: 2014-06-16 01:07 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Wang Zidan 2014-05-26 12:14:15 UTC
Description of Problem:
Exception during call to Web API controller.
Steps to reproduce the problem:
1. Use MONO 3.4.0 compiled and installed on CentOS 6.5 X64.
2. Create a Console Application (I used VS).
3. Add "Microsoft ASP.NET Web API 2.1 OWIN Self Host" by nuget (5.1.2).
4. Create a ApiController like this page:http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2.
5. Try to upload file by form.
6. You will get Server response HttpCode:415.

The main reason for the problem is:

Requst.Content.Headers.ContentType is null,but you can see it by Request.Content.Headers["Content-Type"].

Note You need to log in before you can comment on or make changes to this bug.