Changeset 351 for binary-improvements/MapRendering/Web/MimeType.cs
- Timestamp:
- Jan 19, 2019, 6:12:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/MimeType.cs
r332 r351 568 568 }; 569 569 570 public static string GetMimeType (string extension) {571 if ( extension == null) {572 throw new ArgumentNullException (" extension");570 public static string GetMimeType (string _extension) { 571 if (_extension == null) { 572 throw new ArgumentNullException ("_extension"); 573 573 } 574 574 575 if (! extension.StartsWith (".")) {576 extension = "." +extension;575 if (!_extension.StartsWith (".")) { 576 _extension = "." + _extension; 577 577 } 578 578 579 579 string mime; 580 580 581 return _mappings.TryGetValue ( extension, out mime) ? mime : "application/octet-stream";581 return _mappings.TryGetValue (_extension, out mime) ? mime : "application/octet-stream"; 582 582 } 583 583 }
Note:
See TracChangeset
for help on using the changeset viewer.