Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
Wade
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
solho
Wade
Commits
a63fd771
Commit
a63fd771
authored
Oct 05, 2020
by
solho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
755a6653
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
App_Code/HelloWorldModule.cs
App_Code/HelloWorldModule.cs
+31
-0
No files found.
App_Code/HelloWorldModule.cs
0 → 100644
View file @
a63fd771
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Web
;
public
class
HelloWorldModule
:
IHttpModule
{
public
HelloWorldModule
()
{
}
public
void
Init
(
HttpApplication
app
)
{
app
.
BeginRequest
+=
new
EventHandler
(
this
.
BeginRequest
);
}
public
void
Dispose
()
{
}
public
void
BeginRequest
(
object
resource
,
EventArgs
e
)
{
HttpApplication
app
=
resource
as
HttpApplication
;
HttpContext
context
=
app
.
Context
;
if
(
context
.
Request
.
HttpMethod
.
ToUpper
()
==
"OPTIONS"
)
{
context
.
Response
.
StatusCode
=
200
;
context
.
Response
.
End
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment