File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -99,24 +99,6 @@ fn server_info(config: State<AWConfig>) -> JsonValue {
99
99
} )
100
100
}
101
101
102
- // This catcher is sadly invalid as catchers in rocket are only forwarded if they
103
- // have code 400-599 for some reason
104
- #[ catch( 304 ) ]
105
- fn not_modified ( ) -> JsonValue {
106
- json ! ( {
107
- "status" : 304 ,
108
- "reason" : "Not modified."
109
- } )
110
- }
111
-
112
- #[ catch( 404 ) ]
113
- fn not_found ( ) -> JsonValue {
114
- json ! ( {
115
- "status" : 404 ,
116
- "reason" : "Resource was not found."
117
- } )
118
- }
119
-
120
102
pub fn build_rocket ( server_state : ServerState , config : AWConfig ) -> rocket:: Rocket {
121
103
info ! (
122
104
"Starting aw-server-rust at {}:{}" ,
@@ -166,7 +148,6 @@ pub fn build_rocket(server_state: ServerState, config: AWConfig) -> rocket::Rock
166
148
] ,
167
149
)
168
150
. attach ( cors:: cors ( & config) )
169
- . register ( catchers ! [ not_modified, not_found] )
170
151
. manage ( server_state)
171
152
. manage ( config)
172
153
}
You can’t perform that action at this time.
0 commit comments